package com.blrs.mapper;

import com.blrs.domain.CollaborativeManagement;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 【请填写功能名称】Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-11
 */
public interface CollaborativeManagementMapper 
{
    /**
     * 查询【请填写功能名称】
     * 
     * @param collaborativeId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    public CollaborativeManagement selectCollaborativeManagementByCollaborativeId(String collaborativeId);

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param collaborativeManagement 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    public List<CollaborativeManagement> selectCollaborativeManagementList(CollaborativeManagement collaborativeManagement);
    public List<CollaborativeManagement> selectSetCollaborativeManagementInfo(CollaborativeManagement collaborativeManagement);
    public List<CollaborativeManagement> selectCollaborativeManagementListTwo(CollaborativeManagement collaborativeManagement);
    public List<CollaborativeManagement> selectCollaborativeManagementListDuplicate(CollaborativeManagement collaborativeManagement);

    /**
     * 新增【请填写功能名称】
     * 
     * @param collaborativeManagement 【请填写功能名称】
     * @return 结果
     */
    public int insertCollaborativeManagement(CollaborativeManagement collaborativeManagement);

    /**
     * 修改【请填写功能名称】
     *
     * @param collaborativeManagement 【请填写功能名称】
     * @return 结果
     */
    public int updateCollaborativeManagement(CollaborativeManagement collaborativeManagement);

    /**
     * 删除【请填写功能名称】
     *
     * @param collaborativeId 【请填写功能名称】主键
     * @return 结果
     */
    public int deleteCollaborativeManagementByCollaborativeId(String collaborativeId);

    /**
     * 批量删除【请填写功能名称】
     *
     * @param collaborativeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCollaborativeManagementByCollaborativeIds(String[] collaborativeIds);
    public int selectCollaborativeInfoNumber(Long organizationId);
    List<CollaborativeManagement> selectCollaborativeManagementListByIsCollaborative(Long orgId);
    List<CollaborativeManagement> selectCollaborativeInfoListByType(CollaborativeManagement collaborativeManagement);

    int checkOrganizationHasCollaborative(@Param("organizationId") Long organizationId, @Param("orgId") Long orgId);

    Long selectCollaborativeManagementCount(CollaborativeManagement collaborativeManagement);

}
